package cn.yunhe.dplayerdemo3.Service.impl;

import cn.yunhe.dplayerdemo3.Service.IDanmakuService;
import cn.yunhe.dplayerdemo3.mapper.IDanmakuMapper;
import cn.yunhe.dplayerdemo3.entity.Danmup;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DanmakuService extends ServiceImpl<IDanmakuMapper, Danmup> implements IDanmakuService {

    @Autowired
    private IDanmakuMapper danmakuMapper;

    @Override
    public List<Danmup> getDanmu(int videoId) {
        return danmakuMapper.getDanmu(videoId);
    }
}
